package com.luyu.req;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraintvalidation.SupportedValidationTarget;
import jakarta.validation.constraintvalidation.ValidationTarget;
import jakarta.validation.executable.ExecutableType;
import jakarta.validation.executable.ValidateOnExecution;

/**
 * @author luYu
 */

public class OrderLine {

    public OrderLine(@NotNull String item) {
        System.out.println(item);
    }
    @ValidateOnExecution(type = ExecutableType.ALL)
    public void getMsg(@NotEmpty String msg){
        System.out.println(msg);
    }

}

